home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 2
/
Geek_Gadgets_2_2352.bin
/
lists
/
ade-gcc.archive.9602.gz
/
ade-gcc.archive.9602
/
000055_owner-ade-gcc_Wed Feb 14 06:46:39 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-02-28
|
2KB
Return-Path: <owner-ade-gcc>
Received: by fishpond (Smail3.1.29.1 #57)
id m0tmff7-000gYMa; Wed, 14 Feb 96 06:46 EST
Sender: owner-ade-gcc
Received: from ernie.icslab.agh.edu.pl by fishpond with smtp
(Smail3.1.29.1 #57) id m0tmff1-000gXUC; Wed, 14 Feb 96 06:46 EST
Received: (from kiskra@localhost) by ernie.icslab.agh.edu.pl (8.6.12/8.6.12) id MAA14784; Wed, 14 Feb 1996 12:45:35 +0100
Date: Wed, 14 Feb 1996 12:45:34 +0100 (MET)
From: Kamil Iskra <kiskra@ernie.icslab.agh.edu.pl>
To: Joerg Hoehle <Joerg.Hoehle@gmd.de>
cc: ADE GCC List <ade-gcc@amigalib.com>,
Amiga GCC List <amiga-gcc-port@nic.funet.fi>
Subject: Re: Amiga-specific attributes implemented as keywords
In-Reply-To: <199602141102.AA29188@diva.gmd.de>
Message-ID: <Pine.SUN.3.91.960214124011.14529A-100000@ernie>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-ade-gcc@amigalib.com
Precedence: bulk
On Wed, 14 Feb 1996, Joerg Hoehle wrote:
> I mean that usually, you want something like the following:
>
> in function A:
> "oh, this is our input, it's so complex that we'll need
> ... compute stack size as a function of the input ...
> ah, 40KB of stack before calling function B, so let's reserve
> that much and call B so that it'll have enough."
>
> and not:
> at function entry of B:
> "oh, well, I probably need a bigger stack, but how much, 2KB, 10KB
> or 100KB?"
>
> Unfortunately, the latter is what stackextend gives you.
Is it? Maybe I still don't understand you (quite probable :-), but as far
as I remember, stackext does the following:
At function entry it calls a stack extension function with one argument:
the amount of stack this function needs for frame. Stack extension
function takes care of allocating new stack chunk if current is not big
enough, setting up frame etc. The same happens when program wants to call
alloca().
/ Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 850 MB, 10 MB RAM \
| iskra@student.uci.agh.edu.pl kiskra@ernie.icslab.agh.edu.pl |
| http://student.uci.agh.edu.pl/~iskra |
\ PGP public key available via Finger or WWW /